# 1.定义空集合


info = set()
print(info)

# 2.集合中添加元素："a"
info.add("a")
info.add("b")
print(info)

# 定义非空字符串
var = "abcdbadcgh"
#3.打印去重
print(set(var))

tmp = list(set(var))
print(tmp)

print("".join(tmp)) # 还原成字符串：abcdef

